<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <style>
        form {
            width: 300px;
            margin: 0 auto;
        }
        input[type=text], input[type=number] {
            width: 100%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        input[type=submit] {
            width: 100%;
            background-color: #4CAF50;
            color: white;
            padding: 14px 20px;
            margin: 8px 0;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        input[type=submit]:hover {
            background-color: #45a049;
        }
        div {
            border-radius: 5px;
            background-color: #f2f2f2;
            padding: 20px;
        }
    </style>
</head>
<body>
<h2>添加用户</h2>
<form action="${pageContext.request.contextPath}/user/add" method="post">
    <label for="username">用户名:</label>
    <input type="text" id="username" name="username" required><br>

    <label for="age">年龄:</label>
    <input type="number" id="age" name="age"><br>

    <label for="email">邮箱:</label>
    <input type="text" id="email" name="email"><br>

    <input type="submit" value="提交">
</form>
</body>
</html>